package zkk.com.mengqu.fragment;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

import zkk.com.mengqu.R;
import zkk.com.mengqu.adapter.KitchenIntroAdapter;
import zkk.com.mengqu.util.NoScrollListView;

/**
 * Created by Administrator on 2017/4/17.
 * 厨房简介
 */
public class KitchenIntroFragment extends Fragment {
    private View view;
    private Context context;
    private NoScrollListView listView;
    private KitchenIntroAdapter adapter;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        view = inflater.inflate(R.layout.fragment_kitchen_intro, null);
        context = getContext();
        initView();
        return view;
    }

    public void initView(){
        listView = (NoScrollListView)view.findViewById(R.id.listview);
        adapter = new KitchenIntroAdapter(context);
        listView.setAdapter(adapter);
    }
}
